package com.wanghengzhi.design.patterns.bridge;

class Circle extends Shape{

    private final int x;
    private final int y;
    private final int radius;

    protected Circle(int x, int y, int radius, DrawAPI drawAPI) {
        super(drawAPI);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    @Override
    protected void draw() {
        drawAPI.drawCircle(radius, x, y);
    }


}
